import request from '@/utils/request'

// 查询钻石充值列表
export function listDiamond(query) {
  return request({
    url: '/consumer/diamond/list',
    method: 'get',
    params: query
  })
}

// 查询钻石充值详细
export function getDiamond(id) {
  return request({
    url: '/consumer/diamond/' + id,
    method: 'get'
  })
}

// 新增钻石充值
export function addDiamond(data) {
  return request({
    url: '/consumer/diamond',
    method: 'post',
    data: data
  })
}

// 修改钻石充值
export function updateDiamond(data) {
  return request({
    url: '/consumer/diamond',
    method: 'put',
    data: data
  })
}

// 删除钻石充值
export function delDiamond(id) {
  return request({
    url: '/consumer/diamond/' + id,
    method: 'delete'
  })
}
